/**
 * 获取路由信息
 * */
export function generateRoute () {
  if (this.$route.matched[this.$route.matched.length - 1].name) {
    return this.$route.matched[this.$route.matched.length - 1]
  }
  this.$route.matched[0].path = '/'
  return this.$route.matched[0]
}
